/**
 * @author: zhiqiang
 * @version: 1.0
 * @date: 2022/3/17
 * @description:
 */
package com.lzq.state.improved;

public class Context {

    private State state;

    public Context() {
        this.state = new TestingState(this);
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public void test() {
        state.test();
    }
}
